OBJS = $(patsubst src/%.c, bin/%.o, $(wildcard src/*.cc))
TARGET = main

$(TARGET): $(OBJS)
	g++ $^ -o $@ -I ./include -pthread

bin/%.o: src/%.c
	@mkdir -p bin
	g++ -c $^ -o $@ -I ./include -pthread

clean:
	rm -rf bin/ $(TARGET)